Optimal. Leaf size=21 \[ \frac{1}{2} \tan ^{-1}(2 x+1)-\frac{1}{2} \tan ^{-1}(1-2 x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0129114, antiderivative size = 21, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 3, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.176, Rules used = {1162, 617, 204} \[ \frac{1}{2} \tan ^{-1}(2 x+1)-\frac{1}{2} \tan ^{-1}(1-2 x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1162
Rule 617
Rule 204
Rubi steps
\begin{align*} \int \frac{1+2 x^2}{1+4 x^4} \, dx &=\frac{1}{4} \int \frac{1}{\frac{1}{2}-x+x^2} \, dx+\frac{1}{4} \int \frac{1}{\frac{1}{2}+x+x^2} \, dx\\ &=\frac{1}{2} \operatorname{Subst}\left (\int \frac{1}{-1-x^2} \, dx,x,1-2 x\right )-\frac{1}{2} \operatorname{Subst}\left (\int \frac{1}{-1-x^2} \, dx,x,1+2 x\right )\\ &=-\frac{1}{2} \tan ^{-1}(1-2 x)+\frac{1}{2} \tan ^{-1}(1+2 x)\\ \end{align*}
Mathematica [A] time = 0.0061624, size = 17, normalized size = 0.81 \[ -\frac{1}{2} \tan ^{-1}\left (\frac{2 x}{2 x^2-1}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.043, size = 18, normalized size = 0.9 \begin{align*}{\frac{\arctan \left ( 2\,x-1 \right ) }{2}}+{\frac{\arctan \left ( 1+2\,x \right ) }{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.45928, size = 23, normalized size = 1.1 \begin{align*} \frac{1}{2} \, \arctan \left (2 \, x + 1\right ) + \frac{1}{2} \, \arctan \left (2 \, x - 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.30594, size = 53, normalized size = 2.52 \begin{align*} \frac{1}{2} \, \arctan \left (2 \, x^{3} + x\right ) + \frac{1}{2} \, \arctan \left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.095898, size = 14, normalized size = 0.67 \begin{align*} \frac{\operatorname{atan}{\left (x \right )}}{2} + \frac{\operatorname{atan}{\left (2 x^{3} + x \right )}}{2} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.11962, size = 62, normalized size = 2.95 \begin{align*} \frac{1}{2} \, \arctan \left (2 \, \sqrt{2} \left (\frac{1}{4}\right )^{\frac{3}{4}}{\left (2 \, x + \sqrt{2} \left (\frac{1}{4}\right )^{\frac{1}{4}}\right )}\right ) + \frac{1}{2} \, \arctan \left (2 \, \sqrt{2} \left (\frac{1}{4}\right )^{\frac{3}{4}}{\left (2 \, x - \sqrt{2} \left (\frac{1}{4}\right )^{\frac{1}{4}}\right )}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]